package design.mode.iterator.item1;

/**
 *
 *
 * @author ZhongMingde on 2021/11/20
 */

public interface Iterator<E> {

  boolean hasNext();

  void next();

  E currentItem();
}

// 接口定义方式二
// public interface Iterator { boolean hasNext(); E next();}
